﻿namespace fCloud.SensorApi.Models;

public class MqttSensorsData
{
    public List<NodeData> Clients { get; set; } 
    public CountInfo Count { get; set; }
    public List<OnlineClientInfo> OnlineClients { get; set; }
}

public class MqttSensorsApiResponse
{
    public int Code { get; set; }
    public string Message { get; set; }
    public MqttSensorsData Data { get; set; }
}

public class OnlineClientInfo
{
    public string ClientId { get; set; }
    public int OnlineHours { get; set; }
    public int OfflineHours { get; set; }
    public int WarningCount { get; set; }
}

public class CountInfo
{
    public int TotalCount { get; set; }
    public int OnlineCount { get; set; }
    public int OfflineCount { get; set; }
    public int FaltCount { get; set; }
}